#ifndef _HARDWARE_TWI_H_
#define _HARDWARE_TWI_H_

#include <avr/io.h>
#include <avr/interrupt.h>

	enum PrescalerTWI { PRESCALER_1_TWI, PRESCALER_2_TWI, PRESCALER_4_TWI, PRESCALER_16_TWI, PRESCALER_64_TWI };

class HardwareTwi
{
	public:

	void setBitRate(unsigned char rate);

	void issueStartCondition();

	void setEnableAck(unsigned char flag);

	void setMasterMode(unsigned char flag);

	void setStopCondition(unsigned char flag);

	void setWriteCollision(unsigned char flag);

	void setStop(unsigned char flag);

	void setEnable(unsigned char flag);

	void setInterrupt(unsigned char flag);

	void clearInterruptFlag();

	unsigned char getStatus();



	void setPrescaler(unsigned char flag);

	void setDataToTransmit(unsigned char data);

	void setAddress(unsigned char address);

	void setCallRecognition(unsigned char flag);



};



#endif
